package com.zhejiangzhengyuan.municipal_common.entity.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import java.util.List;

/**
 * @author lin_ju
 * Create on 2019/12/30
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "RoleDto", description = "角色新建编辑")
public class RoleDto {

    @ApiModelProperty(value = "自增主键")
    private Long id;

    @ApiModelProperty(value = "角色名称")
    @NotBlank
    private String roleName;

    @ApiModelProperty(value = "角色描述")
    private String roleDesc;

    @ApiModelProperty(value = "actionId集合", required = true)
    List<Long> idList;
}
